﻿using System;
using System.Data;
using System.Data.Common;
using Hxj.Data;
using Hxj.Data.Common;

namespace RecruitStudents.Utility.Model
{

	/// <summary>
	/// 实体类TB_Dic_PadExamScorePageSetting 。(属性说明自动提取数据库字段的描述信息)
	/// </summary>
	[Serializable]
	public class TB_Dic_PadExamScorePageSetting : Entity 
	{
		public TB_Dic_PadExamScorePageSetting():base("TB_Dic_PadExamScorePageSetting") {    _PadExamScorePageSettingID=Guid.NewGuid().ToString();}

        #region Model
        private string _PadExamScorePageSettingID;
        private string _PadExamScorePageSettingType;
        private int? _RowCount;
        private int? _ColumnCount;
        /// <summary>
        /// 主键ID
        /// </summary>
        public string PadExamScorePageSettingID
        {
            get { return _PadExamScorePageSettingID; }
            set
            {
                this.OnPropertyValueChange(_.PadExamScorePageSettingID, _PadExamScorePageSettingID, value);
                this._PadExamScorePageSettingID = value;
            }
        }
        /// <summary>
        /// 评分评分页面信息展示配置类型
        /// </summary>
        public string PadExamScorePageSettingType
        {
            get { return _PadExamScorePageSettingType; }
            set
            {
                this.OnPropertyValueChange(_.PadExamScorePageSettingType, _PadExamScorePageSettingType, value);
                this._PadExamScorePageSettingType = value;
            }
        }
        /// <summary>
        /// 行数
        /// </summary>
        public int? RowCount
        {
            get { return _RowCount; }
            set
            {
                this.OnPropertyValueChange(_.RowCount, _RowCount, value);
                this._RowCount = value;
            }
        }
        /// <summary>
        /// 列数
        /// </summary>
        public int? ColumnCount
        {
            get { return _ColumnCount; }
            set
            {
                this.OnPropertyValueChange(_.ColumnCount, _ColumnCount, value);
                this._ColumnCount = value;
            }
        }
        #endregion

        #region Method
        /// <summary>
        /// 获取实体中的主键列
        /// </summary>
        public override Field[] GetPrimaryKeyFields()
        {
            return new Field[] {
				_.PadExamScorePageSettingID};
        }
        /// <summary>
        /// 获取列信息
        /// </summary>
        public override Field[] GetFields()
        {
            return new Field[] {
				_.PadExamScorePageSettingID,
				_.PadExamScorePageSettingType,
				_.RowCount,
				_.ColumnCount};
        }
        /// <summary>
        /// 获取值信息
        /// </summary>
        public override object[] GetValues()
        {
            return new object[] {
				this._PadExamScorePageSettingID,
				this._PadExamScorePageSettingType,
				this._RowCount,
				this._ColumnCount};
        }
        /// <summary>
        /// 给当前实体赋值
        /// </summary>
        public override void SetPropertyValues(IDataReader reader)
        {
            this._PadExamScorePageSettingID = DataUtils.ConvertValue<string>(reader["PadExamScorePageSettingID"]);
            this._PadExamScorePageSettingType = DataUtils.ConvertValue<string>(reader["PadExamScorePageSettingType"]);
            this._RowCount = DataUtils.ConvertValue<int?>(reader["RowCount"]);
            this._ColumnCount = DataUtils.ConvertValue<int?>(reader["ColumnCount"]);
        }
        /// <summary>
        /// 给当前实体赋值
        /// </summary>
        public override void SetPropertyValues(DataRow row)
        {
            this._PadExamScorePageSettingID = DataUtils.ConvertValue<string>(row["PadExamScorePageSettingID"]);
            this._PadExamScorePageSettingType = DataUtils.ConvertValue<string>(row["PadExamScorePageSettingType"]);
            this._RowCount = DataUtils.ConvertValue<int?>(row["RowCount"]);
            this._ColumnCount = DataUtils.ConvertValue<int?>(row["ColumnCount"]);
        }
        #endregion

        #region _Field
        /// <summary>
        /// 字段信息
        /// </summary>
        public class _
        {
            /// <summary>
            /// * 
            /// </summary>
            public readonly static Field All = new Field("*", "TB_Dic_PadExamScorePageSetting");
            /// <summary>
            /// 主键ID
            /// </summary>
            public readonly static Field PadExamScorePageSettingID = new Field("PadExamScorePageSettingID", "TB_Dic_PadExamScorePageSetting", "主键ID");
            /// <summary>
            /// 评分评分页面信息展示配置类型
            /// </summary>
            public readonly static Field PadExamScorePageSettingType = new Field("PadExamScorePageSettingType", "TB_Dic_PadExamScorePageSetting", "评分评分页面信息展示配置类型");
            /// <summary>
            /// 行数
            /// </summary>
            public readonly static Field RowCount = new Field("RowCount", "TB_Dic_PadExamScorePageSetting", "行数");
            /// <summary>
            /// 列数
            /// </summary>
            public readonly static Field ColumnCount = new Field("ColumnCount", "TB_Dic_PadExamScorePageSetting", "列数");
        }
        #endregion


    }
}


